from blls.health_blls.health_bll import StandardizeBLL
from handlers.base_handler import BaseHandler
from utils.handler_util import HandlerUtil


class HealthHandler(BaseHandler):
    async def get(self):
        res = StandardizeBLL(request=self).health()
        if res.code != 200:
            self.set_status(500,'')
        return self.write(HandlerUtil.set_response(data=res.data, message=res.message,
                                                   is_success=res.is_success, code=res.code))